from django.core.mail import send_mail
from django.conf import settings
from oaback import celery_app

@celery_app.task(name="send_mail_task")
def send_mail_task(email, subject, message):
    send_mail(f'[天穹OA]账号激活', recipient_list=[email], from_email=settings.EMAIL_HOST_USER, message=message)

